package com.sunbird.crm.contorller;

import com.sunbird.crm.base.Vo.RestMessage;
import com.sunbird.crm.base.aspect.AopLog;
import com.sunbird.crm.entity.sys.TUser;
import com.sunbird.crm.servce.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName sysUserConterllor
 * @Descriptiom 用户控制层
 * @Author Sunbird
 * @Date 2019/8/24 10:37
 * @Version 1.0
 **/
@RestController
@RequestMapping("user")
public class sysUserConterllor  {

    @Autowired
    private SysUserService userService;

    @RequestMapping("insert")
    @AopLog("新增用户")
    public RestMessage insertUser(TUser user){
        userService.save(user);
        return null;
    }
}

